﻿using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
using System.Reflection;
using log4net;
namespace AnyOffice.general.system.bbs
{
    public partial class delete :  ModulePage
    {
        private static ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

        
        protected void Page_Load(object sender, EventArgs e)
        {
            int boardId = (Request.QueryString["board_id"] == null) ? 0 : int.Parse(Request.QueryString["board_id"].ToString());
            BbsBoardDao dao = new BbsBoardDao();
            try
            {
                dao.Delete(base.Conn, boardId);
            }
            catch (Exception exception)
            {
                if (log.IsErrorEnabled)
                {
                    log.Error("", exception);
                }
            }
            base.CloseConn();
            Response.Redirect("index.aspx");
        }

 

 

    }
}
